package com.lemon.smartsafety.entity.base;

/**
 * Created by Cooliean on 16/1/20.
 */
public class ErrorResponse {
    private int code;
    private String msg;


    public ErrorResponse(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ErrorResponse() {
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg == null ? "未知消息" : msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
